package com.dwxt.community.dao;

import com.dwxt.community.entity.*;
import com.dwxt.community.entity.vo.*;
import org.apache.ibatis.annotations.*;

import java.util.*;

public interface AdMapper {
    int countByExample(AdExample example);

    int deleteByExample(AdExample example);

    int deleteByPrimaryKey(String id);

    int insert(Ad record);

    int insertSelective(Ad record);

    List<Ad> selectByExample(AdExample example);

    Ad selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Ad record, @Param("example") AdExample example);

    int updateByExample(@Param("record") Ad record, @Param("example") AdExample example);

    int updateByPrimaryKeySelective(Ad record);

    int updateByPrimaryKey(Ad record);

    List<AdVo> selectAll(@Param("name") String name, @Param("type") Integer type);
}